<?php
/**
 * fwi Registry
 *
 * @author trunghpb
 */
class _fwir {
    public static $aryData = array();

    public static function register($name, $value){
        if (!isset(self::$aryData[$name])){
            self::$aryData[$name] = $value;
        }
    }

    public static function update($name, $value){
        self::$aryData[$name] = $value;
    }

    public static function get($name, $value){
        return self::$aryData[$name];
    }

    public static function getClone($name){
        $tmp = clone self::$aryData[$name];
        return $tmp;
    }
}
?>
